package com.example.demo.mapper;

import com.example.demo.domain.entity.Language;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * Description: <br>
 * 编程语言数据访问层
 * @author fupengcheng<br>
 * @version 8.1<br>
 * @taskId <br>
 * @CreateDate 2021/9/29  14:59<br>
 * @see  <br>
 * @since V8.1<br>
 */
@Mapper
public interface LanguageMapper {
    /**
     * 根据编程语言名称获取编程语言实体类
     * @param languageName
     * @return Language
     */
    Language getLanguageByLanguageName(@Param("languageName") String languageName);


    /**
     * 通过编程语言的唯一标识符获取编程语言对象.
     * @param languageId - 编程语言的唯一标识符
     * @return 预期的编程语言对象或空引用
     */
    Language getLanguageUsingId(@Param("languageId") int languageId);


}
